package cn.kxm.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.kxm.service.PurchaseOrderBillDetailService;

	
import cn.kxm.dao.PurchaseOrderBillDetailDao;
import cn.kxm.pojo.PurchaseOrderBillDetail;
@Service
public class PurchaseOrderBillDetailServiceImpl implements PurchaseOrderBillDetailService{
	@Autowired
	private PurchaseOrderBillDetailDao purchaseOrderBillDetailDao;
	
	@Override
	public List<Map<String, Object>> getPurchaseOrderBillDetailListByBillCode(
			String[] billCode) {
		return purchaseOrderBillDetailDao.getPurchaseOrderBillDetailListByBillCode(billCode);
	}
	@Override
	public int addPurchaseOrderBillDetail(PurchaseOrderBillDetail pDetail) {
		return purchaseOrderBillDetailDao.addPurchaseOrderBillDetail(pDetail);
	}
	@Override
	public int modifyPurchaseOrderBillDetail(PurchaseOrderBillDetail pDetail) {
		return purchaseOrderBillDetailDao.modifyPurchaseOrderBillDetail(pDetail);
	}
	@Override
	public List<PurchaseOrderBillDetail> getpurchaseOrderBillDetailsByCode(
			String code) {
		return purchaseOrderBillDetailDao.getpurchaseOrderBillDetailsByCode(code);
	}
	@Override
	public int delPurchaseOrderBillDetail(String code) {
		return purchaseOrderBillDetailDao.delPurchaseOrderBillDetail(code);
	}

}
